#include <Audio.h>
Public Member Functions | |
| Audio () | |
| int | initSound () |
| void | exitOpenAL () |
| void | killALData () |
| int | getSoundId () |
| int | getSoundCrashId () |
Private Attributes | |
| ALuint | sound_id |
| ALuint | sound_crash_id |
| int | play_flag |
| ALuint | boom [2] |
| ALCdevice * | dev |
| ALvoid * | data |
| ALCcontext * | context_id |
| ALuint | moving_source [2] |
Definition at line 5 of file Audio.h.
|
|
A constructor. Initializes context_id. Definition at line 2 of file Audio.cpp. References context_id. |
|
|
make exiting operations from the sources, devices, and sound data. |
|
|
returns sound id of the crash sound effect.
Definition at line 100 of file Audio.cpp. References sound_crash_id. |
|
|
returns sound id of the background music.
Definition at line 95 of file Audio.cpp. References sound_id. |
|
|
make initialization operations about the sources, devices, and sound data.
Definition at line 7 of file Audio.cpp. References boom, context_id, data, dev, moving_source, sound_crash_id, and sound_id. Referenced by AnimationWindow::AnimationWindow(). |
|
|
delete all the buffers about the sound operation. Definition at line 87 of file Audio.cpp. References boom, and moving_source. Referenced by AnimationWindow::exit(). |
|
|
a private ALuint array. It holds sound datas. Definition at line 31 of file Audio.h. Referenced by initSound(), and killALData(). |
|
|
Definition at line 44 of file Audio.h. Referenced by Audio(), and initSound(). |
|
|
a private ALuint array. Pointer to the audio data. Definition at line 43 of file Audio.h. Referenced by initSound(). |
|
|
a private ALuint array. It shows audio device. Definition at line 37 of file Audio.h. Referenced by initSound(). |
|
|
a private ALuint array. Pointer to an array of ALuint values which will store the names of the new sources. Definition at line 50 of file Audio.h. Referenced by initSound(), and killALData(). |
|
|
a private variable. It shows if the music is played before. |
|
|
a private variable. It holds id of the crash sound effect. Definition at line 19 of file Audio.h. Referenced by getSoundCrashId(), and initSound(). |
|
|
a private variable. It holds id of the background music. Definition at line 13 of file Audio.h. Referenced by getSoundId(), and initSound(). |
1.4.6-NO